package cn.easy.rest.PageController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 用户后台管理界面
 */
@Controller
@RequestMapping("/userManager")
public class UserPageController {
    //主页
    @RequestMapping("/home")
    public String home() {
        return "home";
    }

    //框架外围页
    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    //设备列表
    @RequestMapping("/driverList")
    public String driverList() {
        return "driverList";
    }

    //新增设备
    @RequestMapping("/addDevice")
    public String addDevice() {
        return "addDevice";
    }

    //设备详细信息页
    @RequestMapping("/deviceInfo")
    public String deviceInfo() {
        return "deviceInfo";
    }

    //编辑设备
    @RequestMapping("/editDevice")
    public String editDevice() {
        return "editDevice";
    }

    //数值型传感器界面
    @RequestMapping("/sensorInfo")
    public String sensorInfo() {
        return "sensorInfo";
    }

    //动作列表
    @RequestMapping("/actionList")
    public String actionList() {
        return "actionList";
    }

    //新增动作界面
    @RequestMapping("/addAction")
    public String addAction() {
        return "addAction";
    }

    //编辑动作
    @RequestMapping("editAction")
    public String editAction() {
        return "editAction";
    }


}
